﻿@using Pyramid.Mvc.Html
@model Pyramid.Models.PayeeRecord

@Html.HiddenFor(m => m.PayerId)
@Html.HiddenFor(m => m.PayerType)
@Html.HiddenFor(m=>m.FinanceAccountId)
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.ProjectId)</dt>
	<dd>@Html.DropDownList("ProjectId", (SelectList) ViewBag.FinanceProjects, new {@class = "required"})</dd>
</dl>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.Amount)</dt>
	<dd>
		@Html.TextBoxFor(m => m.Amount, new {@class = "required number", min = "0"})
		<span class="info">（元）</span>
	</dd>
</dl>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.Instruction)</dt>
	<dd>@Html.TextAreaFor(m => m.Instruction)</dd>
</dl>
<div class="divider"></div>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.PayerName)</dt>
	<dd>
		@Html.TextBoxFor(m => m.PayerName, new {@class = "required", @readonly = "readonly"})
		@Html.ActionLink("选择付款方", "SelectList", null, new {@class = "btnLook", lookupGroup = ""})
		<span class="info">（选择付款方）</span>
	</dd>
</dl>
<div class="divider"></div>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.FinanceAccount.AccountType)</dt>
	<dd>@Html.TextBoxFor(m => m.FinanceAccount.AccountType, new {@class = "required", @readonly = "readonly"})</dd>
</dl>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.FinanceAccount.Account)</dt>
	<dd>
		@Html.TextBoxFor(m => m.FinanceAccount.Account, new {@class = "required", @readonly = "readonly"})
		@Html.ActionLink("选择收款账号", "SelectList", "FinanceAccount", null, new {@class = "btnLook", lookupGroup = ""})
		<span class="info">（选择收款账号）</span>
	</dd>
</dl>
<div class="divider"></div>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.ApplyUserId)</dt>
	<dd>@Html.ReadonlyFieldFor(m => m.ApplyUserId)</dd>
</dl>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.ApplyUserName)</dt>
	<dd>@Html.ReadonlyFieldFor(m => m.ApplyUserName)</dd>
</dl>
<dl class="nowrap">
	<dt>@Html.LabelFor(m => m.ApplyTime)</dt>
	<dd>@Html.ReadonlyDateTimeFor(m => m.ApplyTime)</dd>
</dl>